/**   
 * @Title: LoginJson.java 
 * @Package cn.edu.scu.healthserver.domain 
 * @Description: TODO 
 * @author 
 * @date 
 * @version V0.0   
 */
package cn.edu.cdtu.healthclient.domain;

/** 
 * @ClassName: LoginJson 
 * @Description: TODO
 * @author 
 * @date 
 *  
 */
public class LoginJson {

	private int status;
	private UserInformation userInformation;

	/** 
	 * @Title: LoginJson
	 * @Description: TODO
	 * @throws 
	 *
	 */
	public LoginJson() {
	}

	/** 
	 * @Title: LoginJson
	 * @Description: TODO
	 * @throws 
	 *
	 * @param status
	 */
	public LoginJson(int status) {
		this.status = status;
	}

	
	/** 
	 * @Title: LoginJson
	 * @Description: TODO
	 * @throws 
	 *
	 * @param status
	 * @param userInformation
	 */
	public LoginJson(int status, UserInformation userInformation) {
		this.status = status;
		this.userInformation = userInformation;
	}

	/**
	 * @return the status
	 */
	public int getStatus() {
		return status;
	}

	/**
	 * @param status the status to set
	 */
	public void setStatus(int status) {
		this.status = status;
	}

	/**
	 * @return the userInformation
	 */
	public UserInformation getUserInformation() {
		return userInformation;
	}

	/**
	 * @param userInformation the userInformation to set
	 */
	public void setUserInformation(UserInformation userInformation) {
		this.userInformation = userInformation;
	}

	/* (non-Javadoc)
	 * <p>Title: hashCode</p> 
	 * <p>Description: </p> 
	 * @return 
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + status;
		result = prime * result
				+ ((userInformation == null) ? 0 : userInformation.hashCode());
		return result;
	}

	/* (non-Javadoc)
	 * <p>Title: equals</p> 
	 * <p>Description: </p> 
	 * @param obj
	 * @return 
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		LoginJson other = (LoginJson) obj;
		if (status != other.status)
			return false;
		if (userInformation == null) {
			if (other.userInformation != null)
				return false;
		} else if (!userInformation.equals(other.userInformation))
			return false;
		return true;
	}

	/* (non-Javadoc)
	 * <p>Title: toString</p> 
	 * <p>Description: </p> 
	 * @return 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "LoginJson [status=" + status + ", userInformation="
				+ userInformation + "]";
	}

	
	
}
